Definition (Cantor construction)

The set of real numbers, \mathbb{R} may be defined as the set of equivalence classes of Cauchy sequences of rational numbers under the equivalence relation {xi}{yi}\{x_i\} \sim \{y_i\} if the interleave sequence of the two sequences is itself a Cauchy sequence.

Lean4 representation

/-- The type `ℝ` of real numbers constructed as equivalence classes of Cauchy sequences of rational numbers. -/
structure Real where ofCauchy ::
	/-- The underlying Cauchy completion -/
	cauchy : CauSeq.Completion.Cauchy (abs : ℚ → ℚ)

Notes


References

  1. https://planetmath.org/realnumber
  2. https://ncatlab.org/nlab/show/real+number
  3. https://blog.richmond.edu/math320/2017/09/22/cantors-construction-of-the-real-numbers/
  4. https://web.archive.org/web/20180712113707/http://www.math.uni-konstanz.de:80/~krapp/Constructions_of_the_real_numbers.pdf
  5. https://mathworld.wolfram.com/RealNumber.html
  6. https://leanprover-community.github.io/mathlib4_docs/Mathlib/Data/Real/Basic.html